package com.linkoog.devtools.http.parser;

import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiMethod;
import com.linkoog.devtools.http.common.HttpMethod;
import com.linkoog.devtools.http.raw_index.HttpServiceMethod;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public interface HttpServiceParser {

    ExtensionPointName<HttpServiceParser> EXTENSION_POINT_NAME = ExtensionPointName.create("com.github.linkoog.DevTools.httpServiceParser");

    String getSourceType();

    boolean support(@NotNull PsiMethod psiMethod);

    List<HttpMethod> parseHttpMethod(@NotNull PsiMethod psiMethod);

    HttpServiceMethod parse(@NotNull PsiMethod psiMethod);



}
